﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace CapturarObjetos.Cenas
{
    public class Cena_Instrucoes
    {
         private Texture2D fundo;
        private GameWindow Window;
        //Texture2D seta_menu;


        public Cena_Instrucoes(ContentManager Content, GameWindow Window)
        {
            this.Window = Window;
            fundo = Content.Load<Texture2D>("telainstrucoes");
            
            
        }

        public void Update(GameTime gameTime, KeyboardState teclado_atual, KeyboardState teclado_anterior, MouseState mouse_atual, MouseState mouse_anterior)
        {
            if (teclado_atual.IsKeyDown(Keys.V))
            {
                Game1.cenaAtual = Game1.Cenas.INTRO;
               // Game1.mudouMusica = true;
               // Game1.musica = Cenas.Cena_Game.musica;
            }

            if ((mouse_atual.LeftButton == ButtonState.Pressed) && (mouse_anterior.LeftButton != ButtonState.Pressed))
            {
                if (new Rectangle(600, 400, 60, 60).Contains(mouse_atual.X, mouse_atual.Y))
                {
                    Game1.cenaAtual = Game1.Cenas.FASE01;
                }
            }
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(fundo, new Rectangle(0, 0, Window.ClientBounds.Width, Window.ClientBounds.Height), Color.White);
        }
    }
}
